package com.company;

class Box<T,v>{
    private T content;

    public v getName() {
        return name;
    }

    public void setName(v name) {
        this.name = name;
    }

    private v name;
    public T getContent() {
        return content;
    }

    public void setContent(T content) {
        this.content = content;
    }

}

public class TDemo {
    public static void main(String[] args) {
       Box<String,String> box = new Box<String,String>();
       box.setContent("你好！");
       String content = box.getContent();
        System.out.println(content);

        Box<Integer,String> box1 = new Box<>();
        box1.setContent(45);
        Integer content1 = box1.getContent();
        System.out.println(content1);

        Box<StudentScore,String> box3 = new Box<>();
        box3.setContent(new StudentScore("1001", "张三", "男", 85, 90, 78));
    }
}
